<?php

class PropertyModel extends Model{
//	指定表名

	public $table="typeproperty";
//	自动验证
    public $validate=array(
    array("propertyname","nonull","属性名不能为空",2,3),
    array("propertyvalue","nonull","属性值不能为空",2,3),
	);
	public function addData(){
		if(!$this->create())return false;
		return $this->add();
	}
	
}
?>